package com.alageek.study.controller;

import com.alageek.study.entity.Book;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class BookController {
    @GetMapping("/book")
    public Book book(){
        Book book = new Book("红楼梦", "曹雪芹", 30f, new Date());
        return book;
    }
}
